// Copyright (c) Appeon. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

using System;

namespace SnapObjects.Data
{
    public interface ISubQuery
    {
        /// <summary>
        ///     Gets the name of the subquery.
        /// </summary>
        string Name { get; }

        /// <summary>
        ///     Gets the raw SQL that is specified for the subquery.
        /// </summary>
        string RawSql { get; }

        /// <summary>
        ///     Gets the type of the model that is specified for the subquery.
        /// </summary>
        Type ModelType { get; }

        /// <summary>
        ///     Gets the name of the select list (SqlSelectAttribute.SelectName property) that is predefined in the model type.
        /// </summary>
        string SelectName { get; }

        /// <summary>
        ///     Gets whether a raw SQL has been specified for the subquery.
        /// </summary>
        bool IsRawSql { get; }
    }
}
